import { findAllAcross } from '@/apis/acrossAPI'
import type { AcrossViewModel } from '@/types/model'
import { ref } from 'vue'

export default () => {
  const acrosss = ref<AcrossViewModel[]>([])

  async function all(args = {}) {
    const { data } = await findAllAcross(args)
    acrosss.value = data
  }

  return { all, acrosss }
}
